package com.landian.commons.jpa.hql;


/**
 * PredicateHqlLike
 *
 * @author caojl
 * @create 2017/12/06
 **/
public class PredicateHqlIn implements PredicateHql {

    private PredicateHqlIn(String path, ParameterUnit parameterUnit){
        this.predicateHql = PredicateHqlCommon.newInstance(path, parameterUnit, OperationType.IN);
    }

    /**
     * predicateHql
     */
    private PredicateHql predicateHql;

    public static PredicateHql newInstance(String path, ParameterUnit parameterUnit) {
        return new PredicateHqlIn(path,parameterUnit);
    }

    @Override
    public String hql() {
        return predicateHql.hql();
    }

    @Override
    public ParameterUnit parameterUnit() {
        return predicateHql.parameterUnit();
    }

}
